.class Lcom/viewpagerindicator/TabMovablePageIndicator$TabView;
.super Landroid/widget/TextView;
.source "TabMovablePageIndicator.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/viewpagerindicator/TabMovablePageIndicator;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "TabView"
.end annotation


# instance fields
.field private mIndex:I

.field final synthetic this$0:Lcom/viewpagerindicator/TabMovablePageIndicator;

.field private wordWidth:I


# direct methods
.method public constructor <init>(Lcom/viewpagerindicator/TabMovablePageIndicator;Landroid/content/Context;)V
    .registers 5
    .param p2, "context"    # Landroid/content/Context;

    .prologue
    .line 412
    iput-object p1, p0, Lcom/viewpagerindicator/TabMovablePageIndicator$TabView;->this$0:Lcom/viewpagerindicator/TabMovablePageIndicator;

    .line 413
    const/4 v0, 0x0

    sget v1, Lcom/viewpagerindicator/R$attr;->vpiTabPageIndicatorStyle:I

    invoke-direct {p0, p2, v0, v1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 414
    return-void
.end method

.method static synthetic access$500(Lcom/viewpagerindicator/TabMovablePageIndicator$TabView;)I
    .registers 2
    .param p0, "x0"    # Lcom/viewpagerindicator/TabMovablePageIndicator$TabView;

    .prologue
    .line 408
    iget v0, p0, Lcom/viewpagerindicator/TabMovablePageIndicator$TabView;->wordWidth:I

    return v0
.end method

.method static synthetic access$502(Lcom/viewpagerindicator/TabMovablePageIndicator$TabView;I)I
    .registers 2
    .param p0, "x0"    # Lcom/viewpagerindicator/TabMovablePageIndicator$TabView;
    .param p1, "x1"    # I

    .prologue
    .line 408
    iput p1, p0, Lcom/viewpagerindicator/TabMovablePageIndicator$TabView;->wordWidth:I

    return p1
.end method

.method static synthetic access$702(Lcom/viewpagerindicator/TabMovablePageIndicator$TabView;I)I
    .registers 2
    .param p0, "x0"    # Lcom/viewpagerindicator/TabMovablePageIndicator$TabView;
    .param p1, "x1"    # I

    .prologue
    .line 408
    iput p1, p0, Lcom/viewpagerindicator/TabMovablePageIndicator$TabView;->mIndex:I

    return p1
.end method


# virtual methods
.method public getIndex()I
    .registers 2

    .prologue
    .line 440
    iget v0, p0, Lcom/viewpagerindicator/TabMovablePageIndicator$TabView;->mIndex:I

    return v0
.end method

.method public onMeasure(II)V
    .registers 8
    .param p1, "widthMeasureSpec"    # I
    .param p2, "heightMeasureSpec"    # I

    .prologue
    const/high16 v4, 0x40000000

    .line 418
    invoke-super {p0, p1, p2}, Landroid/widget/TextView;->onMeasure(II)V

    .line 421
    iget-object v2, p0, Lcom/viewpagerindicator/TabMovablePageIndicator$TabView;->this$0:Lcom/viewpagerindicator/TabMovablePageIndicator;

    # getter for: Lcom/viewpagerindicator/TabMovablePageIndicator;->isTabAllDisplay:Z
    invoke-static {v2}, Lcom/viewpagerindicator/TabMovablePageIndicator;->access$800(Lcom/viewpagerindicator/TabMovablePageIndicator;)Z

    move-result v2

    if-nez v2, :cond_2f

    .line 422
    iget-object v2, p0, Lcom/viewpagerindicator/TabMovablePageIndicator$TabView;->this$0:Lcom/viewpagerindicator/TabMovablePageIndicator;

    # getter for: Lcom/viewpagerindicator/TabMovablePageIndicator;->mMaxTabWidth:I
    invoke-static {v2}, Lcom/viewpagerindicator/TabMovablePageIndicator;->access$900(Lcom/viewpagerindicator/TabMovablePageIndicator;)I

    move-result v2

    if-lez v2, :cond_2e

    invoke-virtual {p0}, Lcom/viewpagerindicator/TabMovablePageIndicator$TabView;->getMeasuredWidth()I

    move-result v2

    iget-object v3, p0, Lcom/viewpagerindicator/TabMovablePageIndicator$TabView;->this$0:Lcom/viewpagerindicator/TabMovablePageIndicator;

    # getter for: Lcom/viewpagerindicator/TabMovablePageIndicator;->mMaxTabWidth:I
    invoke-static {v3}, Lcom/viewpagerindicator/TabMovablePageIndicator;->access$900(Lcom/viewpagerindicator/TabMovablePageIndicator;)I

    move-result v3

    if-le v2, v3, :cond_2e

    .line 423
    iget-object v2, p0, Lcom/viewpagerindicator/TabMovablePageIndicator$TabView;->this$0:Lcom/viewpagerindicator/TabMovablePageIndicator;

    # getter for: Lcom/viewpagerindicator/TabMovablePageIndicator;->mMaxTabWidth:I
    invoke-static {v2}, Lcom/viewpagerindicator/TabMovablePageIndicator;->access$900(Lcom/viewpagerindicator/TabMovablePageIndicator;)I

    move-result v2

    invoke-static {v2, v4}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v2

    invoke-super {p0, v2, p2}, Landroid/widget/TextView;->onMeasure(II)V

    .line 437
    :cond_2e
    :goto_2e
    return-void

    .line 426
    :cond_2f
    iget v2, p0, Lcom/viewpagerindicator/TabMovablePageIndicator$TabView;->wordWidth:I

    iget-object v3, p0, Lcom/viewpagerindicator/TabMovablePageIndicator$TabView;->this$0:Lcom/viewpagerindicator/TabMovablePageIndicator;

    # getter for: Lcom/viewpagerindicator/TabMovablePageIndicator;->mPaddingEachEdge:I
    invoke-static {v3}, Lcom/viewpagerindicator/TabMovablePageIndicator;->access$1000(Lcom/viewpagerindicator/TabMovablePageIndicator;)I

    move-result v3

    mul-int/lit8 v3, v3, 0x2

    add-int/2addr v2, v3

    invoke-static {v2, v4}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v2

    invoke-super {p0, v2, p2}, Landroid/widget/TextView;->onMeasure(II)V

    .line 427
    iget-object v2, p0, Lcom/viewpagerindicator/TabMovablePageIndicator$TabView;->this$0:Lcom/viewpagerindicator/TabMovablePageIndicator;

    # getter for: Lcom/viewpagerindicator/TabMovablePageIndicator;->mIndicator:Landroid/widget/ImageView;
    invoke-static {v2}, Lcom/viewpagerindicator/TabMovablePageIndicator;->access$600(Lcom/viewpagerindicator/TabMovablePageIndicator;)Landroid/widget/ImageView;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/ImageView;->getVisibility()I

    move-result v2

    const/4 v3, 0x4

    if-ne v2, v3, :cond_2e

    iget v2, p0, Lcom/viewpagerindicator/TabMovablePageIndicator$TabView;->mIndex:I

    if-nez v2, :cond_2e

    .line 428
    iget-object v2, p0, Lcom/viewpagerindicator/TabMovablePageIndicator$TabView;->this$0:Lcom/viewpagerindicator/TabMovablePageIndicator;

    # getter for: Lcom/viewpagerindicator/TabMovablePageIndicator;->mIndicator:Landroid/widget/ImageView;
    invoke-static {v2}, Lcom/viewpagerindicator/TabMovablePageIndicator;->access$600(Lcom/viewpagerindicator/TabMovablePageIndicator;)Landroid/widget/ImageView;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/ImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout$LayoutParams;

    .line 429
    .local v0, "lp":Landroid/widget/LinearLayout$LayoutParams;
    iget v2, p0, Lcom/viewpagerindicator/TabMovablePageIndicator$TabView;->wordWidth:I

    iget-object v3, p0, Lcom/viewpagerindicator/TabMovablePageIndicator$TabView;->this$0:Lcom/viewpagerindicator/TabMovablePageIndicator;

    # getter for: Lcom/viewpagerindicator/TabMovablePageIndicator;->mExtendWidth:I
    invoke-static {v3}, Lcom/viewpagerindicator/TabMovablePageIndicator;->access$1100(Lcom/viewpagerindicator/TabMovablePageIndicator;)I

    move-result v3

    mul-int/lit8 v3, v3, 0x2

    add-int/2addr v2, v3

    iput v2, v0, Landroid/widget/LinearLayout$LayoutParams;->width:I

    .line 430
    iget-object v2, p0, Lcom/viewpagerindicator/TabMovablePageIndicator$TabView;->this$0:Lcom/viewpagerindicator/TabMovablePageIndicator;

    # getter for: Lcom/viewpagerindicator/TabMovablePageIndicator;->mPaddingEachEdge:I
    invoke-static {v2}, Lcom/viewpagerindicator/TabMovablePageIndicator;->access$1000(Lcom/viewpagerindicator/TabMovablePageIndicator;)I

    move-result v2

    iget-object v3, p0, Lcom/viewpagerindicator/TabMovablePageIndicator$TabView;->this$0:Lcom/viewpagerindicator/TabMovablePageIndicator;

    # getter for: Lcom/viewpagerindicator/TabMovablePageIndicator;->mExtendWidth:I
    invoke-static {v3}, Lcom/viewpagerindicator/TabMovablePageIndicator;->access$1100(Lcom/viewpagerindicator/TabMovablePageIndicator;)I

    move-result v3

    sub-int v1, v2, v3

    .line 431
    .local v1, "x":I
    iput v1, v0, Landroid/widget/LinearLayout$LayoutParams;->leftMargin:I

    .line 432
    iget-object v2, p0, Lcom/viewpagerindicator/TabMovablePageIndicator$TabView;->this$0:Lcom/viewpagerindicator/TabMovablePageIndicator;

    # getter for: Lcom/viewpagerindicator/TabMovablePageIndicator;->mIndicator:Landroid/widget/ImageView;
    invoke-static {v2}, Lcom/viewpagerindicator/TabMovablePageIndicator;->access$600(Lcom/viewpagerindicator/TabMovablePageIndicator;)Landroid/widget/ImageView;

    move-result-object v2

    invoke-virtual {v2, v0}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 433
    iget-object v2, p0, Lcom/viewpagerindicator/TabMovablePageIndicator$TabView;->this$0:Lcom/viewpagerindicator/TabMovablePageIndicator;

    # getter for: Lcom/viewpagerindicator/TabMovablePageIndicator;->mIndicator:Landroid/widget/ImageView;
    invoke-static {v2}, Lcom/viewpagerindicator/TabMovablePageIndicator;->access$600(Lcom/viewpagerindicator/TabMovablePageIndicator;)Landroid/widget/ImageView;

    move-result-object v2

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 434
    iget-object v2, p0, Lcom/viewpagerindicator/TabMovablePageIndicator$TabView;->this$0:Lcom/viewpagerindicator/TabMovablePageIndicator;

    invoke-virtual {v2}, Lcom/viewpagerindicator/TabMovablePageIndicator;->requestLayout()V

    goto :goto_2e
.end method
